import axios from '@/util/request'

export const brandQueryPage = (bsex,bname,pageNum,pageSize) =>{
    return axios({
        url:'/brands/queryByPage',
        method:'get',
        params:{
           bsex,bname,pageNum,pageSize
        }
    })
}

export const insertSave = data =>{
    return axios({
        url:'/brands/add',
        method:'post',
        data:data
    })
}
export const deleteById = id =>{
    return axios({
        url:'/brands/delete',
        method:'get',
        params:{id}
    })
}
export const updateById = data =>{
      return axios({
        url:'/brands/update',
        method:'post',
        data: data
    })
}

export const queryAll=()=>{
    return axios({
        url:'/brands/queryAll',
        method:'get',
    })
}
